﻿using System;
using System.Net;
using CrmServiceWebReference;

/// <summary>
/// Summary description for WebServiceKeptAlive
/// </summary>
public class WebServiceKeptAlive : CrmService
{
    public WebServiceKeptAlive()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    protected override WebRequest GetWebRequest(Uri uri)
    {
        HttpWebRequest request = (HttpWebRequest) base.GetWebRequest(uri);
        request.KeepAlive = false;
        request.ConnectionGroupName = new Guid().ToString();
        return request;
    }
}